<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class MenusTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $menus = [
        	[
        		'code' => 'company',
        		'parent_code' => 'top',
        		'name' => '企业管理',
        		'icon' => null,
        		'uri' => null,
        		'sort' => 1
			],[
        		'code' => 'attendance',
        		'parent_code' => 'top',
        		'name' => '考勤管理',
        		'icon' => null,
        		'uri' => null,
        		'sort' => 2
			],[
				'code' => 'inspection',
				'parent_code' => 'top',
				'name' => '巡检管理',
				'icon' => null,
				'uri' => '/inspection',
				'sort' => 22
			],[
				'code' => 'reporting',
				'parent_code' => 'top',
				'name' => '报岗管理',
				'icon' => null,
				'uri' => '/reporting',
				'sort' => 23
			],[
        		'code' => 'conference',
        		'parent_code' => 'top',
        		'name' => '会议管理',
        		'icon' => null,
        		'uri' => null,
        		'sort' => 4
			],[
        		'code' => 'training',
        		'parent_code' => 'top',
        		'name' => '培训管理',
        		'icon' => null,
        		'uri' => null,
        		'sort' => 5
			],[
        		'code' => 'culture',
        		'parent_code' => 'top',
        		'name' => '内容管理',
        		'icon' => null,
        		'uri' => null,
        		'sort' => 6
			],[
        		'code' => 'finance',
        		'parent_code' => 'top',
        		'name' => '财务管理',
        		'icon' => null,
        		'uri' => null,
        		'sort' => 7
			],[
        		'code' => 'wages',
        		'parent_code' => 'top',
        		'name' => '薪资管理',
        		'icon' => null,
        		'uri' => null,
        		'sort' => 8
			],[
        		'code' => 'system',
        		'parent_code' => 'top',
        		'name' => '系统设置',
        		'icon' => null,
        		'uri' => null,
        		'sort' => 9
			],[
        		'code' => 'logs',
        		'parent_code' => 'top',
        		'name' => '操作日志',
        		'icon' => null,
        		'uri' => 'logs',
        		'sort' => 10
			],[
				'code' => 'project',
				'parent_code' => 'company',
				'name' => '项目管理',
				'icon' => null,
				'uri' => '/company/project',
				'sort' => 11
			],[
				'code' => 'consociation',
				'parent_code' => 'company',
				'name' => '合作管理',
				'icon' => null,
				'uri' => '/company/consociation',
				'sort' => 11
			],[
				'code' => 'department',
				'parent_code' => 'company',
				'name' => '部门管理',
				'icon' => null,
				'uri' => '/company/department',
				'sort' => 12
			],[
				'code' => 'position',
				'parent_code' => 'company',
				'name' => '岗位管理',
				'icon' => null,
				'uri' => '/company/position',
				'sort' => 13
			],[
				'code' => 'staff',
				'parent_code' => 'company',
				'name' => '人员管理',
				'icon' => null,
				'uri' => '/company/staff',
				'sort' => 14
			],[
				'code' => 'transfer',
				'parent_code' => 'staff',
				'name' => '人员调动',
				'icon' => null,
				'uri' => '/company/staff/transfer',
				'sort' => 15
			],[
				'code' => 'career',
				'parent_code' => 'staff',
				'name' => '职业生涯',
				'icon' => null,
				'uri' => '/company/staff/career',
				'sort' => 16
			],[
				'code' => 'attendance_report',
				'parent_code' => 'attendance',
				'name' => '考勤报表',
				'icon' => null,
				'uri' => '/attendance/details_report',
				'sort' => 17
			],[
				'code' => 'attendance_project_exception',
				'parent_code' => 'attendance',
				'name' => '项目异常报表',
				'icon' => null,
				'uri' => '/attendance/project_exception',
				'sort' => 18
			],[
				'code' => 'attendance_setting',
				'parent_code' => 'attendance',
				'name' => '考勤设置',
				'icon' => null,
				'uri' => '/attendance/setting',
				'sort' => 19
			],[
				'code' => 'scheduling',
				'parent_code' => 'attendance',
				'name' => '排班管理',
				'icon' => null,
				'uri' => '/attendance/scheduling',
				'sort' => 20
			],[
				'code' => 'modify_attendance_report',
				'parent_code' => 'attendance_report',
				'name' => '修改考勤数据',
				'icon' => null,
				'uri' => '/attendance/report/modify_report',
				'sort' => 21
			],[
				'code' => 'inspection_line',
				'parent_code' => 'inspection',
				'name' => '线路设置',
				'icon' => null,
				'uri' => '/inspection/line',
				'sort' => 24
			],[
				'code' => 'inspection_circle',
				'parent_code' => 'inspection',
				'name' => '圈数设置',
				'icon' => null,
				'uri' => '/inspection/circle',
				'sort' => 25
			],[
				'code' => 'inspection_point',
				'parent_code' => 'inspection',
				'name' => '点位设置',
				'icon' => null,
				'uri' => '/inspection/point',
				'sort' => 26
			],[
				'code' => 'inspection_report',
				'parent_code' => 'inspection',
				'name' => '巡检报表',
				'icon' => null,
				'uri' => '/inspection/report',
				'sort' => 27
			],[
				'code' => 'inspection_exception',
				'parent_code' => 'inspection',
				'name' => '巡检异常',
				'icon' => null,
				'uri' => '/inspection/exception',
				'sort' => 28
			],[
				'code' => 'reporting_point',
				'parent_code' => 'reporting',
				'name' => '岗位点设置',
				'icon' => null,
				'uri' => '/reporting/point',
				'sort' => 29
			],[
				'code' => 'reporting_statistics',
				'parent_code' => 'reporting',
				'name' => '报岗报表',
				'icon' => null,
				'uri' => '/reporting/statistics',
				'sort' => 30
			],[
				'code' => 'reporting_statistics_exception',
				'parent_code' => 'reporting_statistics',
				'name' => '异常统计报表',
				'icon' => null,
				'uri' => '/reporting/statistics/exception',
				'sort' => 31
			],[
				'code' => 'conference_report',
				'parent_code' => 'conference',
				'name' => '会议报表',
				'icon' => null,
				'uri' => '/conference',
				'sort' => 32
			],[
				'code' => 'training_manager',
				'parent_code' => 'training',
				'name' => '培训管理',
				'icon' => null,
				'uri' => '/training',
				'sort' => 33
			],[
				'code' => 'banner',
				'parent_code' => 'culture',
				'name' => 'Banner管理',
				'icon' => null,
				'uri' => '/culture/banner',
				'sort' => 34
			],[
				'code' => 'article',
				'parent_code' => 'culture',
				'name' => '心灵驿站',
				'icon' => null,
				'uri' => '/culture/article',
				'sort' => 35
			],[
				'code' => 'notification',
				'parent_code' => 'culture',
				'name' => '通知管理',
				'icon' => null,
				'uri' => '/culture/notification',
				'sort' => 36
			],[
				'code' => 'finance_overview',
				'parent_code' => 'finance',
				'name' => '财务总览',
				'icon' => null,
				'uri' => '/finance/overview',
				'sort' => 37
			],[
				'code' => 'wages_pattern',
				'parent_code' => 'wages',
				'name' => '薪资方案',
				'icon' => null,
				'uri' => '/wages/pattern',
				'sort' => 38
			],[
				'code' => 'wages_report',
				'parent_code' => 'wages',
				'name' => '薪资报表',
				'icon' => null,
				'uri' => '/wages/report',
				'sort' => 39
			],[
				'code' => 'register_setting',
				'parent_code' => 'system',
				'name' => '注册设置',
				'icon' => null,
				'uri' => '/system/register_setting',
				'sort' => 40
			],[
				'code' => 'infrastructure_setting',
				'parent_code' => 'system',
				'name' => '基础数据设置',
				'icon' => null,
				'uri' => '/system/infrastructure_setting',
				'sort' => 41
			]
		];

        DB::table('menus')->insert($menus);
    }
}
